<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
		.alert{min-height: 150px;}
			.photo_view>li{height: 150px;margin: 5px 0px;cursor: pointer;
			}
			.photo_view>li img{width: 100%;height: 75%;}
			.photo_view>li p{text-align: center;
			height:28px;line-height: 28px;
			background: rgba(0,0,0,0.1);font-size: 0.9rem;
			}
			.photo_view li .btn-group{position: absolute;top:5px;right:3px}
		</style>
		
	</head>
	<body >	
	<h6><kbd>&nbsp;查看【{$photosort.name}】相册的照片&nbsp;</kbd></h6>
		

		
		
				<div class="alert alert-danger col-lg-12">
						<ul class="list-unstyled photo_view">
						<foreach name="images" item="p">
							
							<li class="col-lg-2">
				<a href='__IMGS__/photo_images/{$p.photosort_id}/{$p.filename}' 
		     class='fresco' data-fresco-group='example' data-fresco-caption="{$p.name}">
								<img  src="__IMGS__/photo_images/{$p.photosort_id}/{$p.filename}" alt="" />
							  </a>
							<p>{$p.name}</p>
							<div class="btn-group">
								   <button type="button" class="btn btn-primary dropdown-toggle btn-xs" 
								      data-toggle="dropdown"><span class="caret"></span>
								   </button>
								   <ul class="dropdown-menu" role="menu">
								      <li><a href="{:U(MODULE_NAME.'/Photos/imageedit',array(id=>$p['id']))}">编辑</a></li>
								      <li><a href="{:U(MODULE_NAME.'/Photos/serCover',array(id=>$p['id'],sortId=>$p['photosort_id']))}">设为封面</a></li>
								    	<li><a  onclick="ShowDialog(this)" data-url="{:U(MODULE_NAME.'/Photos/deleteImage',array(id=>$p['id']))}"  data-toggle="modal" >删除</a></li>

								    <li><a  data-toggle="dropdown">移动到</a>
								    	  <ul>
									<foreach name="photosorts" item="s">
											<li><a href="{:U(MODULE_NAME.'/Photos/imageMove',array(id=>$p['id'],sortId=>$s['id']))}">{$s.name}</a></li>
									</foreach>
								   </ul>

								      </li>
								   </ul>
								</div>
							
							</li>
							</foreach>
							
							
						</ul>
				</div>
				<div class="pageShow">
									{$pageShow}
									</div>
				<a href="{:U(MODULE_NAME.'/Photos/index')}" class="btn btn-danger">返回相册管理</a>
				<link rel="stylesheet" href="__PUB__/dialog/css/fresco/fresco.css" />
				<script src="__PUB__/dialog/js/fresco/fresco.js"></script>


      			  {:W('Modal/dialog',array("删除提示","你确定要删除选择的图片嘛？"))}
      	<script src="__PUBLIC__/js/dialogHandle.js"></script>

	</body>		

</html>
